import request from '@/utils/request'
// 获取权限列表
export function getPermission() {
  return request({
    url: '/sys/permission'

  })
}
// 新增 权限点
export function postPermission(data) {
  return request({
    url: '/sys/permission',
    method: 'post',
    data

  })
}
// 删除-权限点
export function delPermission(id) {
  return request({
    url: `/sys/permission/${id}`,
    method: 'DELETE'

  })
}
// 删除-权限点
export function putPermission(data) {
  return request({
    url: `/sys/permission/${data.id}`,
    method: 'put',
    data

  })
}
